<?php


class My_Controller_Action extends Zend_Controller_Action
{
    protected $_flashMessenger;
    protected $translate = null;
    protected $userLang = null;
    protected $_schoolId = null;
    protected $_referer = null;

    public function init()
    {
		$this->translate = Zend_Registry::get('Zend_Translate');

        $this->_flashMessenger 	= $this->_helper->getHelper('FlashMessenger');
        $this->view->messages = $this->_flashMessenger->getMessages();


        $session = new Zend_Session_Namespace();
        $this->view->userLang = $this->userLang = $session->language;

        $request = $this->getRequest();
        $this->view->currentModule = $request->getModuleName();
        $this->view->currentController = $request->getControllerName();
        $this->view->referer = $this->_referer = $request->getServer('HTTP_REFERER');

        $this->_schoolId = $this->view->authdata->school_id;

    }

}

